# name : SQL case when as
# key : sql.case.when.as
# contributor: Shuguang Sun
# --
(case ${1:var or function}
when ${2:value} then ${3:return}
else ) as $0